package com.rwx.reflect;

import com.rwx.reflect.model.Student;

public class Reflect01 {

    public static void main(String[] args) throws ClassNotFoundException {
        Class clazz1=Class.forName("com.rwx.reflect.model.Student");

        System.out.println(clazz1);

        Class clazz2= Student.class;
        System.out.println(clazz1==clazz2);

        Student student = new Student();
        Class clazz3 = student.getClass();
        System.out.println(clazz1==clazz3);
        System.out.println(clazz2==clazz3);
    }
}
